/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package StringMethod;

/**
 *
 * @author Mizael
 */
public class metodo4 {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        String g= "hola mundo";
        String a= "hola mundo";
        System.out.println(g.equals(a));
        //compara dos cadenas y deuvelbe true si son iguales o false si son diferentes
    }

}
